package com.yjd.comm.device.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.device.model.UserDeviceModel;

/**
 * <b>description</b>：标的信息业务接口<br>
 * <b>time</b>：2015-01-27 20:00:50 <br>
 * <b>author</b>：  renbangjie
 */
public interface IUserDeviceService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserDeviceModel insert(UserDeviceModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserDeviceModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param user_device_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long user_device_id) throws Exception;
	
	/**
	 * 用户是否第一次登陆
	* @param idUser
	* @return UserDeviceModel
	 * @throws Exception 
	 */
	public UserDeviceModel getUserDeviceModelByUser(Long idUser) throws Exception;

}
